<!DOCTYPE html>
<html>
<#include "../head.html">
    <style>
        .account_type{float:left;margin-top: 3px;}
    </style>
<body>
<table class="mc">
<tr>
<td class="mc-l">
    <!--左侧导航---{-->
    <div id="navPanelContainer">
        <div class="system-logo cd"></div>
        <!--管理员信息---{-->
        <#include "../adminInfo.html">
            <!--管理员信息---}-->
            <div class="nav-wrap">
                <#include "left.html">
            </div>
    </div>
    <!--左侧导航---}-->
</td>
<td class="mc-m">
    <div class="navToggle"></div>
</td>
<td class="mc-r">
<!--顶部导航---{-->
<#include "../topNav.html">
    <!--顶部导航---}-->

    <!--面包屑导航---{-->
    <#assign moduleName="黑名单列表">
        <#include "banner.html">
            <!--面包屑导航---}-->

            <!--工具栏--{-->
            <div id="toolbar" class="clearfix">
                <div class="toolbor-module export">
                    <input type="button" onclick="exportxls()" value="导出报表" class="input-button export-btn"/>
                </div>
                <#if param?exists>
                    <#if param.get("dotime1")?exists><#assign dotime1=param.get("dotime1")></#if>
                    <#if param.get("dotime2")?exists><#assign dotime2=param.get("dotime2")></#if>
                    <#if param.get("username")?exists><#assign username=param.get("username")></#if>
                </#if>
                <div class="toolbor-module search">    
                    <input type="button" value="搜索"  class="input-button" onclick="sousuo();">
                </div>
                <div class="toolbor-module search">
                    <input type="text" name="username" id="username" value="请输入姓名" data-value="请输入姓名" class="search-value">
                </div>
					<div class="toolbor-module search">
						<div style="height: 22px; line-height: 22px; float: left;">时间：</div>
						<input class="_search-value js-datetime" type="text"
							name="dotime1" id="dotime1" value="${dotime1!}" />
						<div
							style="height: 22px; line-height: 22px; float: left; margin: 0 8px;">
							到</div>
						<input class="_search-value js-datetime" type="text"
							name="dotime2" value="${dotime2!}" id="dotime2" />
					</div>
				</div>
            <!--工具栏--}-->

            <div id="main" class="clearfix">
                <form action="" method="post">
                    <table class="data-list">
                        <tr class="header">
                            <td>ID</td>
                            <td>数据来源平台</td>
                            <td>姓名</td>
                            <td>身份证号</td>
                            <td>手机号</td>
                            <td>email</td>
                            <td>qq</td>
                            <td>所在地</td>
                            <td>贷款总额</td>
                            <td>贷款笔数</td>
                            <td>最近一笔逾期时间</td>
                            <td>逾期笔数</td>
                            <td>逾期总金额</td>
                            <td>逾期天数</td>
                            <td>添加时间</td>
                            <td>上传</td>
                        </tr>
                        <#import "../../common/function.html" as func>
                        <#if list??>
	                        <#list list as item>
	                            <tr class="s">
	                            	<td>
	                            	${item.id?c}
	                            	</td>
	                                <td>
	                                ${item.platfrom!}
	                                </td>
	                                <td>
	                                ${item.username!}
	                                </td>
	                                <td>
	                              	 ${item.identity!}
	                                </td>
	                                <td>
	                                ${item.mobile!}
	                                </td>
	                                <td>
	                                ${item.email!}
	                                </td>
	                                <td>
	                                ${item.qq!}
	                                </td>
	                                <td>
	                                ${item.location!}
	                                </td>
	                                <td>
	                            	${item.loan_count?c}
	                            	</td>
	                                <td>
	                                ${item.loan_number?c}
	                                </td>
	                                <td>
	                                ${dateformat(item.last_overdue_date?c)}
	                                </td>
	                                <td>
	                                ${item.overdue_number?c}
	                                </td>
	                                <td>
	                                ${item.overdue_money?c}
	                                </td>
	                                <td>
	                                ${item.overdue_days?c}
	                                </td>
	                                <td>
	                                ${dateformat(item.addtime?c)}
	                                </td>
	                                <td>
	                                <#if item.is_upload == 1 >
									已上传
	                                <#else>
									<a href="javascript:;" class="un" onClick="javascript:if(confirm('确定要上传吗?')) location.href=''"><font color="#006600">上传</font></a>
	                                </#if>
	                                </td>
	                            </tr>
	                        </#list>
                        </#if>
                    </table>
                </form>

                <!--底部工具栏--{-->
                <div id="bottomToolbar" class="clearfix">
                    <div class="other-tool">
                        <dl class="refresh-data">
                            <dt class="refresh-data-icon"></dt>
                            <dd><a href="javascript:void(0);" class="refresh-page">刷新数据</a></dd>
                        </dl>
                    </div>

                    <!--翻页系统--{-->
                    <div class="container">
                        <#import "../../common/page.html" as pager>
                            <@pager.pagination page=page url="/admin/loanblack/showLoanBlackList.html" map=param style="style1"  />
                    </div>
                    <!--翻页系统--}-->
                </div>
                <!--底部工具栏--}-->

                <script>
                    var url = 'showLoanBlackList.html?search=true';
                    var xlsurl = 'showLoanBlackList.html?choiceType=export';

                    function sousuo(){
                        var sou = "";
                        var username = $("#username").val();
                        if (username!=""&&username!="请输入姓名"){
                            sou += "&username="+username;
                        }
                        var dotime1 = $("#dotime1").val();
                        var dotime2 = $("#dotime2").val();
                        if (dotime1!=null){
                            sou += "&dotime1="+dotime1;
                        }
                        if (dotime2!=null){
                            sou += "&dotime2="+dotime2;
                        }
                        if (sou!=""){
                            location.href=url+sou;
                        }
                    }
                    function exportxls(){
                        var sou = "";
                        var username = $("#username").val();
                        if (username!=""&&username!="请输入姓名"){
                            sou += "&username="+username;
                        }
                        var dotime1 = $("#dotime1").val();
                        var dotime2 = $("#dotime2").val();

                        if (dotime1!=null){
                            sou += "&dotime1="+dotime1;
                        }
                        if (dotime2!=null){
                            sou += "&dotime2="+dotime2;
                        }
                        if (sou!=""){
                            location.href=xlsurl+sou;
                        }else{
                            location.href=xlsurl;
                        }
                    }
                </script>
            </div>

</td>
</tr>
<tr>
    <!--尾部--{-->
    <td colspan="3" class="mc-b"><#include "../foot.html"></td>
    <!--尾部--}-->
</tr>
</table>

</body>
</html>
<#include "../jsPage.html">